from pygtrans import Translate
def traslate(source_text, target_lang):
    try:
        client = Translate()
        target = client.translate(source_text, target=target_lang)
        return {'target_lang': target_lang, 'source': source_text, 'target': target.translatedText}, True
    except Exception as e:
        return str(e), False